package com.imooc.miaoshaproject.service;

import com.imooc.miaoshaproject.exceptions.ServiceException;
import com.imooc.miaoshaproject.service.model.UserModel;

/**
 * 用户服务
 *
 * @author chenjianfei
 */
public interface UserService {

    UserModel getUserById(Integer id);

    void register(UserModel userModel) throws ServiceException;

    UserModel validateLogin(String telphone,String encrptPassword) throws ServiceException;
}
